use spring_axum_macros::{controller, route_get};

#[controller(hello)]
struct HelloController;

#[route_get("/hello")]
async fn hello() -> &'static str {
    "hello"
}

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let app = spring_axum::auto_discover!();
    app.run().await
}
